﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class AcademicPersonConfiguration : EntityConfiguration<AcademicPerson>
    {
        public AcademicPersonConfiguration()
        {
            Property(ap => ap.PersonID).IsIdentity();
            MapHierarchy(
                e => new
                {
                    e.PersonID,
                    e.Enrollment,
                    e.AcademicOrganizationID,
                    e.LattesPlatformWebPage
                }
          ).ToTable("AcademicPerson");

        }

    }
}
